import baseurl from '../env'
import request from '../req'

// 批量上传发票
export const uploadZipNew = async (data: any) => {
    let res = await request.post('saas/invoice/upload-zip-new', data)
    return res
}
// 根据上传发票查询需同步应用列表
export const queryNeedUploadList = async (params: any) => {
    let res = await request.get('saas/invoice/query-need-upload-list',{
        params: params
    })
    return res
}
// 上传发票应用到申请记录中
export const syncInvoice = async (data: any) => {
    let res = await request.post('saas/invoice/sync-invoice', data)
    return res
}
// 查询发票上传记录
export const recordList = async (params: any) => {
    let res = await request.get('saas/invoice/upload/record/record-list', {
        params: params
    })
    return res
}
// 查询待应用发票列表
export const needSyncInvoiceList = async (params: any) => {
    let res = await request.get('saas/invoice/upload/record/need-sync-invoice-list', {
        params: params
    })
    return res
}


export const alipayWithdraw = async (params: {
    companyId: number
    amount: number
}): Promise<string> => {
    return request.get('/alipay/account/account-transfer-account', {
        params
    })
}
